package com.star.star.struct;

import com.star.star.dto.StarSaveWxuserDTO;
import com.star.star.dto.StarUpdateWxuserDTO;
import com.star.star.entity.Star;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 艺人转对象
 *
 * @author yangzj
 */
@Mapper
public interface StarStruct {
    StarStruct INSTANCE = Mappers.getMapper(StarStruct.class);

    /**
     * 到
     *
     * @param dto 入参
     * @return {@link Star}
     */
    Star to(StarSaveWxuserDTO dto);

    /**
     * 到
     *
     * @param dto 入参
     * @return {@link Star}
     */
    Star to(StarUpdateWxuserDTO dto);
}
